package com.qf.item1.dao;

import com.qf.item1.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 刘欣
* @description 针对表【customer】的数据库操作Mapper
* @createDate 2023-02-03 14:36:50
* @Entity com.qf.item1.domain.Customer
*/
public interface CustomerDao {
    int deleteByPrimaryKey(List<Long> ids);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    List<Customer> getCustomerAll(Customer customer);

    Customer selectByUsernameAndPassword(@Param("name") String name, @Param("password") String password);

    Customer selectCustomer(Customer customer);

    List<Customer> pageQuery(@Param("index") Integer index, @Param("limit") Integer limit);

    int batchInsert(@Param("customers") List<Customer> customers);

    Customer selectCustomerByName(String name);

    List<Customer> selectAll();

    void insertCustomers(@Param("customers")List<Customer> customers);
}
